<!DOCTYPE html><html><head><title>商城统计</title><meta charset='utf-8'><link href='https://dn-maxiang.qbox.me/res-min/themes/marxico.css' rel='stylesheet'><style></style></head><body><div id='preview-contents' class='note-content'>
                        
                    

<h2 id="商城统计">商城统计</h2>

<blockquote>
  <p>共 <code>initParam</code> <code>search</code> 两个接口</p>
</blockquote>

<hr>

<h3 id="initparam"><code>initParam</code></h3>

<p><strong>接口说明</strong> </p>

<pre class="prettyprint hljs-dark"><code class="hljs 1c">请求条件初始化<br>需要服务器初始化的请求条件有区服、商城名称和角色等级五个，其中区服下拉框默认值为<span class="hljs-string">"0"</span>，商城名称下拉框默认值为<span class="hljs-string">"-99999"</span>，角色等级下拉框默认值为<span class="hljs-string">"-1"</span><br>开始时间和结束时间由前端自行初始化，值为别为一周前和一天前<br></code></pre>

<p><strong>URL</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs crystal"><span class="hljs-symbol">http:</span>/<span class="hljs-regexp">/115.159.207.95:9080/game</span><span class="hljs-regexp">/mallStatistics/init</span>Param.<span class="hljs-keyword">do</span><br></code></pre>

<p><strong>请求参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs groovy"><span class="hljs-number">1.</span> <span class="hljs-string">callback :</span> <span class="hljs-string">""</span><br></code></pre>

<p><strong>返回参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs dts">{<br><span class="hljs-symbol">    res:</span> <span class="hljs-string">"0"</span>,<br><span class="hljs-symbol">    serverItmes:</span> {<br>        全区服: <span class="hljs-string">"0"</span>,<br>        神谕<span class="hljs-number">1</span>区: <span class="hljs-string">"1002"</span>,<br>        神谕<span class="hljs-number">2</span>区: <span class="hljs-string">"1004"</span><br>    },<br><span class="hljs-symbol">    reasonItmes:</span> {    <span class="hljs-meta"># 商城名称</span><br>        全部商城名称: <span class="hljs-string">"-99999"</span>,<br>        <span class="hljs-number">1</span>号商城: <span class="hljs-string">"1"</span><br>    },<br><span class="hljs-symbol">    rolelevelMap:</span> {<br>        无筛选等级: <span class="hljs-string">"-1"</span>,<br>        <span class="hljs-number">1</span><span class="hljs-number">-10</span>级: <span class="hljs-string">"1"</span><br>    }<br>}<br></code></pre>

<hr>

<h3 id="search"><code>search</code></h3>

<p><strong>接口说明</strong> </p>

<pre class="prettyprint hljs-dark"><code class="hljs">根据请求条件，查询并返回结果<br></code></pre>

<p><strong>URL</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs crystal"><span class="hljs-symbol">http:</span>/<span class="hljs-regexp">/115.159.207.95:9080/game</span><span class="hljs-regexp">/mallStatistics/search</span>.<span class="hljs-keyword">do</span><br></code></pre>

<p><strong>请求参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs axapta"><span class="hljs-number">1.</span> dstart : <span class="hljs-string">"2017-06-01"</span>       <span class="hljs-meta"># 开始时间 </span><br><span class="hljs-number">2.</span> dend : <span class="hljs-string">"2017-06-07"</span>         <span class="hljs-meta"># 结束时间 </span><br><span class="hljs-number">3.</span> <span class="hljs-keyword">server</span> : <span class="hljs-string">"1001"</span>             <span class="hljs-meta"># 区服</span><br><span class="hljs-number">4.</span> param : <span class="hljs-string">"11"</span>                <span class="hljs-meta"># 物品ID，可为空字符串</span><br><span class="hljs-number">5.</span> reason: <span class="hljs-string">"1"</span>                 <span class="hljs-meta"># 商城名称</span><br><span class="hljs-number">6.</span> rolelevel: <span class="hljs-string">"2"</span>              <span class="hljs-meta"># 角色等级</span><br><span class="hljs-number">7.</span> callback : <span class="hljs-string">""</span><br></code></pre>

<p><strong>返回参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs dts">{<br><span class="hljs-symbol">    res:</span> <span class="hljs-string">"0"</span>,<br><span class="hljs-symbol">    dataList1:</span> {    <span class="hljs-meta"># 结果数据列表</span><br><span class="hljs-symbol">        day:</span> <span class="hljs-string">"2016-05-19"</span>,        <span class="hljs-meta"># 时间</span><br><span class="hljs-symbol">        currencytypeStr:</span> <span class="hljs-string">"2"</span>,     <span class="hljs-meta"># 货币类型</span><br><span class="hljs-symbol">        mallName:</span> <span class="hljs-string">"3001"</span>,         <span class="hljs-meta"># 商城名称</span><br><span class="hljs-symbol">        levelName:</span> <span class="hljs-string">"11-20级"</span>,     <span class="hljs-meta"># 等级</span><br><span class="hljs-symbol">        itemName:</span> <span class="hljs-string">"荣耀狂欢券"</span>      <span class="hljs-meta"># 物品</span><br><span class="hljs-symbol">        sumchangenum:</span> <span class="hljs-number">304</span>,        <span class="hljs-meta"># 货币消耗量</span><br><span class="hljs-symbol">        times:</span> <span class="hljs-number">304</span>,               <span class="hljs-meta"># 购买次数</span><br><span class="hljs-symbol">        rolenum:</span> <span class="hljs-number">304</span>,             <span class="hljs-meta"># 购买角色数</span><br><span class="hljs-symbol">        allSumchangenum:</span> <span class="hljs-number">0.56</span>,    <span class="hljs-meta"># 货币消耗占比 sumchangenum / allSumchangenum</span><br><span class="hljs-symbol">        allRolenum:</span> <span class="hljs-number">0.3</span>           <span class="hljs-meta"># 角色占比 rolenum / allRolenum</span><br>    }<br>}<br></code></pre></div></body></html>